{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "8bdd3e89-bcb4-49fe-8aa4-8b6b885174d1",
   "metadata": {},
   "source": [
    "## 什么是模型 I/O\n",
    "\n",
    "LangChain 屏蔽了各种 LLM 模型底层的 API 逻辑，不需要我们去分析 API 如何使用，他提供了统一的包装类，直接调用即可。\n",
    "\n",
    "### 模型 I/O 核心功能\n",
    "\n",
    "- 模型包装器：通过接口调用大语言模型。\n",
    "- 提示词模板：将用户对 LLM 的输入进行模板化，即模型输入。\n",
    "- 输出解析器：从模型中提取信息，即模型输出。\n",
    "\n",
    "![图片](./img/model_flow.png)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c0ede6ce-aec1-4485-b805-af4d12fe70bc",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
